package com.hfh.review;

/**
 * @Author hfh
 * @Date 2022 09 16 10 04
 **/
public class TransferTest {
    public static void main(String[] args) {
        Account src = new Account("张飞",10000);
        Account target = new Account("关羽",10000);

        Transfer tran = new Transfer();
        tran.change(src,target,2000);
        tran.change(target,src,1000);

        System.out.println(src.getName()+src.getMoney());
        System.out.println(target.getName()+target.getMoney());
    }
}
